// -----------------------------------------------------------------------
// <copyright file="ClusterInit.cs" company="Asynkron AB">
//      Copyright (C) 2015-2022 Asynkron AB All rights reserved
// </copyright>
// -----------------------------------------------------------------------
using System;

namespace Proto.Cluster;

[Obsolete("Replace with 'Started' lifecycle message. '.ClusterIdentity()' and '.Cluster()' is available on IContext")]
public class ClusterInit
{
    public ClusterInit(ClusterIdentity clusterIdentity, Cluster cluster)
    {
        ClusterIdentity = clusterIdentity;
        Cluster = cluster;
    }

    public ClusterIdentity ClusterIdentity { get; }

    public string Identity => ClusterIdentity.Identity;
    public string Kind => ClusterIdentity.Kind;

    public Cluster Cluster { get; }
}